const mutations = {
  /* 设置用户信息 */
  setUserInfo(state, userInfo) {
    state.userInfo = userInfo
    state.ticket = userInfo.ticket
  },
  /* 清除用户信息 */
  clearUserInfo(state) {
    state.userInfo = null
    state.ticket = null
  },

  // * 设置spinning
  setSpinning(state, flag) {
    state.spinning = flag
  },
}

export default mutations
